package com.zjcode.cdcer.mapper;

import java.util.Date;
import java.util.List;

import com.zjcode.cdcer.model.CerNjzdDetail;
import org.apache.ibatis.annotations.Param;

import com.zjcode.cdcer.model.TkmSysteminitImportInfo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TkmSysteminitImportInfoMapper {

    int deleteByPrimaryKey(String id);

    int insert(TkmSysteminitImportInfo record);

    int insertList(@Param("list") List<TkmSysteminitImportInfo> list);

    int insertSelective(TkmSysteminitImportInfo record);

    TkmSysteminitImportInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TkmSysteminitImportInfo record);

    int updateByPrimaryKey(TkmSysteminitImportInfo record);

    int updateDeletedById(@Param("updatedDeleted") Integer updatedDeleted, @Param("id") String id);

    int deleteById(@Param("id")String id);



    int updateExtFlagByCreateBy(@Param("updatedExtFlag") String updatedExtFlag,
                                @Param("createBy") String createBy);

    List<TkmSysteminitImportInfo> selectAllByInsertDatetimeBetweenOrEqualTo(@Param("minInsertDatetime") String minInsertDatetime,
                                                                            @Param("maxInsertDatetime") String maxInsertDatetime);

    int findInitCountByPersonId(@Param("personId") String personId);

    void delNjzdDetail(@Param("systeminitImportInfoId") String systeminitImportInfoId);

    void addNjzdDetail(@Param("njzdDetail") CerNjzdDetail njzdDetail);

    CerNjzdDetail selNjzdDetailBySysteminitImportInfoId(@Param("systeminitImportInfoId") String systeminitImportInfoId);
}
